T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.
Cocktail Help Reference
ShowDialogAsync<T>(Object,T,T,IEnumerable<T>,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogManager Class > ShowDialogAsync Method : ShowDialogAsync<T>(Object,T,T,IEnumerable<T>,String) Method



content
The custom view model to host in the dialog.
defaultButton
Specifies the default button. The Enter key will be mapped to this button.
cancelButton
Specifies the button taking on the special role of the cancel function. If the user clicks this button, the Task will be marked as cancelled.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the dialog.

Glossary Item Box

Displays a modal dialog with a custom view model.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ShowDialogAsync(Of T)( _
   ByVal content As Object, _
   ByVal defaultButton As T, _
   ByVal cancelButton As T, _
   ByVal dialogButtons As IEnumerable(Of T), _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As DialogManager
Dim content As Object
Dim defaultButton As T
Dim cancelButton As T
Dim dialogButtons As IEnumerable(Of T)
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowDialogAsync(Of T)(content, defaultButton, cancelButton, dialogButtons, title)
C# 
public Task<T> ShowDialogAsync<T>( 
   object content,
   T defaultButton,
   T cancelButton,
   IEnumerable<T> dialogButtons,
   string title
)
C++/CLI 
public:
Task<T^>^ ShowDialogAsyncgeneric<typename T>
( 
   Object^ content,
   T^ defaultButton,
   T^ cancelButton,
   IEnumerable<T^>^ dialogButtons,
   String^ title
) 

Parameters

content
The custom view model to host in the dialog.
defaultButton
Specifies the default button. The Enter key will be mapped to this button.
cancelButton
Specifies the button taking on the special role of the cancel function. If the user clicks this button, the Task will be marked as cancelled.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the dialog.

Type Parameters

T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.